package com.tanguy.user.bean.station;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.ArrayList;

/**
 * Created by dab on 2017/11/20 0020 16:00
 */

public class StationBean implements Parcelable {

    private ArrayList<SiteBean> site;
    private ArrayList<CityBean> city;

    public ArrayList<SiteBean> getSite() {
        return site;
    }

    public void setSite(ArrayList<SiteBean> site) {
        this.site = site;
    }

    public ArrayList<CityBean> getCity() {
        return city;
    }

    public void setCity(ArrayList<CityBean> city) {
        this.city = city;
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeList(this.site);
        dest.writeList(this.city);
    }

    public StationBean() {
    }

    protected StationBean(Parcel in) {
        this.site = new ArrayList<SiteBean>();
        in.readList(this.site, SiteBean.class.getClassLoader());
        this.city = new ArrayList<CityBean>();
        in.readList(this.city, CityBean.class.getClassLoader());
    }

    public static final Parcelable.Creator<StationBean> CREATOR = new Parcelable.Creator<StationBean>() {
        @Override
        public StationBean createFromParcel(Parcel source) {
            return new StationBean(source);
        }

        @Override
        public StationBean[] newArray(int size) {
            return new StationBean[size];
        }
    };
}
